package com.cleaningcloud.erp.controller.mini;

import com.cleaningcloud.cld.api.domain.Vo.CldStaffDto;
import com.cleaningcloud.common.core.web.controller.BaseController;
import com.cleaningcloud.common.core.web.domain.AjaxResult;
import com.cleaningcloud.common.security.annotation.InnerAuth;
import com.cleaningcloud.erp.api.domain.ErpCustomer;
import com.cleaningcloud.erp.service.IErpCommodityService;
import com.cleaningcloud.erp.service.IErpCustomerService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * packageName com.cleaningcloud.erp.controller.mini
 *
 * @author Shaw
 * @version JDK 8
 * @className MallCommodityController
 * @date 2025-04-02
 * @description 三才环科商城(小程序)客户接口
 */
@RestController
@RequestMapping("/mall/customer")
public class MallCustomerController extends BaseController {

    @Autowired
    private IErpCustomerService customerService;

    @InnerAuth
    @Operation(description = "修改客户信息")
    @PostMapping("/updateCustomerAddress")
    public AjaxResult updateCustomerAddress(@RequestBody ErpCustomer erpCustomer) {
        return toAjax(customerService.updateErpCustomer(erpCustomer));
    }
}